package lin.tb.com.commonadapter;

import android.content.Context;

import java.util.List;

/**
 * Created by zhenggl on 2015/8/6.
 */
public class MyAdapter extends CommonBaseAdapter<MyEntity>{

    private Context context;
    private List<MyEntity> entities;

    public MyAdapter(Context context, List<MyEntity> entities) {
        super(context, entities);
        this.context = context;
        this.entities = entities;
    }

    @Override
    public void initView(CommonViewHolder holder, MyEntity entity) {
        holder.getTextView(R.id.lv_demo).setText(entity.getName());
    }


}
